package com.pig4cloud.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.mall.product.dto.AttrParam;
import com.pig4cloud.mall.product.entity.ProductAttribute;
import com.pig4cloud.mall.product.vo.SkuRuleVo;
import com.pig4cloud.pig.common.core.util.PageResult;

/**
 * 商品属性参数表
 *
 * @author fangyu
 * @date 2020-12-26 23:41:08
 */
public interface ProductAttributeService extends IService<ProductAttribute> {


	PageResult listAttr(Long cid, Integer type, Integer current, Integer size);

	int create(AttrParam attrParam);

	ProductAttribute getItem(Long id);

	int update(Long id, AttrParam attrParam);

	int delete(Long id);

	SkuRuleVo getSkuRule(Long cid);
}
